<?

	class LikeModel{
		private $sessionPosition = "LikeModelLies";
		/*
		 * $return boolean if not pressed before
		 */
		public function UserPressedButton(){
			if(isset($_SESSION[$this->sessionPosition]) == FALSE){
				$_SESSION[$this->sessionPosition] = 1;
			}else{
				$_SESSION[$this->sessionPosition] ++;
			}
		}
		
		/*
		 * $return integer with amount of "Likes"
		 */
		public function GetNumberOfLikes(){
			if (isset($_SESSION[$this->sessionPosition]) == TRUE) {
				return $_SESSION[$this->sessionPosition];
			}else{
				return 0;	
			}
			
		}
	}
